package com.jimmieran.springcloudtest.ribbontest.ribbontest.controller;

import com.jimmieran.springcloudtest.ribbontest.ribbontest.service.RibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RibbonController {

    @Autowired
    private RibbonService ribbonService;

    @RequestMapping("/ribbonSay")
    @ResponseBody
    public String ribbonSay(@RequestParam String name){
        return ribbonService.getSayMessage(name);
    }
}
